// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

import Vue from 'vue'
import App from './App'
import VueRouter from "vue-router";
import ElementUI from 'element-ui';
import axios from "axios";
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import './assets/css/customize.css'
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
import moment from "moment"
Vue.use(ElementUI);
Vue.use(VueRouter);

Vue.filter('formatDate',function (value) {
  return moment(value).format('YYYY-MM-DD HH:mm:ss')
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  //安装全局事件总线
  beforeCreate() {
    Vue.prototype.$bus = this
  }
})
